package popcorn.ticket.dao;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import popcorn.ticket.entity.Logs;
import popcorn.ticket.entity.LogsExample;

@Repository
public interface LogsMapper {
	long countByExample(LogsExample example);

	int deleteByExample(LogsExample example);

	int deleteByPrimaryKey(Integer logid);

	int insert(Logs record);

	int insertSelective(Logs record);

	List<Logs> selectByExample(LogsExample example);

	Logs selectByPrimaryKey(Integer logid);

	int updateByExampleSelective(@Param("record") Logs record, @Param("example") LogsExample example);

	int updateByExample(@Param("record") Logs record, @Param("example") LogsExample example);

	int updateByPrimaryKeySelective(Logs record);

	int updateByPrimaryKey(Logs record);
	
	/**
	 * 根据用户编号查询
	 * @param userid
	 * @return
	 */
	List<Logs> selectLogsByUserid(@Param("userid")int userid,@Param("startTime")String startTime,@Param("endTime")String endTime);


	
}